package com.dxx.cloud.admin.utils;

import org.springframework.util.DigestUtils;

public class Md5Utils {
    //盐，用于混交md5
    private static final String slat = "&%1041***&&%%$$#@";

    public static String encode(String str) {
        String base = str +"/"+slat;
        String md5 = DigestUtils.md5DigestAsHex(base.getBytes());
        return md5;
    }

    public static void main(String[] args) {
        System.out.println(encode("dfwefwef"));
    }
}
